package com.liurong.quartz.job;

import java.util.Date;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.liurong.quartz.util.JobDetailWork;
import com.liurong.quartz.util.annotation.Cron;
import com.liurong.quartz.util.annotation.JobBaseConfig;

@Component
@JobBaseConfig(isDistribute = false, isHandStart = false, remark = "第二个job")
public class QuartzTwoJob implements JobDetailWork {
	private Logger logger = LoggerFactory.getLogger(QuartzTwoJob.class);

	@Cron("0/1 * * * * ?")
	public void work() {
		logger.info("Quartz2的任务调度！！！" + (new Date()).toString());
	}
}
